<%@page import="org.blog.controller.UserController"%>
<%@ page errorPage="../jsp/exceptionHandler.jsp" %>


    <div id = "menu">
    <div id = "login">
    	<jsp:include page="login.jsp"/>
		<br/>
		<%if(UserController.isLogged(session)) {%>
		<br/>
		<br/>
		<a href = "UserSettings">Ustawienia</a><br/>
		<a href = "AddBlog">Nowy blog</a><br/>
		<%if(UserController.isAdmin(session)) {%>
				
		<a href = "AdminServlet">Panel administratora</a><br/>
		
		<%} %>
		<br>
		<%} %>
		</div>	
		<div id = "myBlogs">
		<a href = "BlogServlet?do=search">Blogi</a><br/>
		
		
		<%if(UserController.isLogged(session)) {%>
				
		<jsp:include page="myBlogs.jsp"/>
		
		<%} %>
		</div>
	</div>